package br.edu.unifei.cct810.projetofinal.gui.janelas;

import java.awt.Dimension;

import javax.swing.BorderFactory;

import br.edu.unifei.cct810.projetofinal.gui.componentes.CampoNumerico;

public class JanelaGoToLine extends javax.swing.JInternalFrame {
	
	public JanelaGoToLine() {
		this.initComponents();
	}	
	
	public void initComponents() {
		
		java.awt.GridBagConstraints gridBagConstraints;
		
		this.setLayout(new java.awt.GridBagLayout());
		
		panelData = new javax.swing.JPanel();
		panelButton = new javax.swing.JPanel();
		btnOk = new javax.swing.JButton();
		lblNumeroLinhas = new javax.swing.JLabel("Linha: ");
		txtNumeroLinha = new CampoNumerico();
		
		
		panelData.add(txtNumeroLinha);
		btnOk.setText("Ok");
		panelButton.add(btnOk);
		
		panelData.setLayout(new java.awt.GridBagLayout());
		panelData.setBorder(BorderFactory.createTitledBorder(""));
		
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
		gridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 5);
		panelData.add(lblNumeroLinhas, gridBagConstraints);
		
		txtNumeroLinha.setPreferredSize(new Dimension(85, 20));
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
		gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 5);
		panelData.add(txtNumeroLinha, gridBagConstraints);
		
		panelData.setBorder(BorderFactory.createTitledBorder(""));
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
		gridBagConstraints.anchor = java.awt.GridBagConstraints.CENTER;
		gridBagConstraints.weightx = 100.0;
		gridBagConstraints.weighty = 100.0;
		gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
		getContentPane().add(panelData, gridBagConstraints);
		
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 1;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.anchor = java.awt.GridBagConstraints.CENTER;
		gridBagConstraints.weightx = 100.0;
		gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
		getContentPane().add(panelButton, gridBagConstraints);
		
		this.setTitle("Ir Para...");
		this.setClosable(true);
		this.setMaximizable(false);
		this.setSize(325, 135);
	}
	
	private javax.swing.JPanel panelData;
	private javax.swing.JPanel panelButton;
	private javax.swing.JButton btnOk;
	private javax.swing.JLabel lblNumeroLinhas;
	private CampoNumerico txtNumeroLinha;
	
	public javax.swing.JButton getBtnOk() {
		return btnOk;
	}

	public CampoNumerico getTxtNumeroLinha() {
		return txtNumeroLinha;
	}
}
